<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" dir="ltr">
	<head>

		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" href="<c:url value="/css/shopadmin.css"/>" type="text/css" />


	</head>
	<body style="">
		<div class="head_content" id="headBar" style=""></div>
		<div class="main_content" id="main">

			<form action="sys_setting_batchSave.html" method="post" class="settingform" id="basic_form" enctype="multipart/form-data">
				<input name="redirect" value="sys_setting_mall_basic" type="hidden" />
					<div class="tableform">
						<table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody>
								<tr>
									<td>
										<h4>
											商城基本设置
										</h4>
									</td>
									<td style="text-align: right; padding-right: 10px;">
										&nbsp;
									</td>
								</tr>
							</tbody>
						</table>
						<div class="division" style="position: static;">
							<table class="shop-setting" border="0" cellpadding="0" cellspacing="0" width="100%">
								<tbody>
									<tr>
										<th>
											商城名称：
										</th>
										<td>
											<input value="${mallParameter.mallName.name}" name="systemSettingss[0].name" type="hidden">
												<input class="x-input " style="width: 280px;" value="${mallParameter.mallName.data}" name="systemSettingss[0].data" type="text">
										</td>
									</tr>
									<tr>
										<th>
											商城网址：
										</th>
										<td>
											<input value="${mallParameter.mallUrl.name}" name="systemSettingss[1].name" type="hidden">
												<input class="x-input " style="width: 280px;" value="${mallParameter.mallUrl.data}" name="systemSettingss[1].data" type="text">
													<span class="fontcolorGray">&nbsp;&nbsp;例如:<b>http://www.hubaobei.com/</b> </span>
										</td>
									</tr>
									<tr>
										<th>
											商城Logo：
										</th>
										<td>
											<div style="float: none; position: static;" id="sitelogo">
												<img src="${systemSettings.data}" width="80" height="80" />
												<div></div>
												<input value="${systemSettings.name}" name="systemSettings.name" type="hidden">
													<input class="x-input " name="upload" type="file">
											</div>
										</td>
									</tr>
									<tr>
										<th>
											备案号：
										</th>
										<td>
											<input value="${mallParameter.mallCertificate.name}" name="systemSettingss[2].name" type="hidden">
												<input class="x-input " value="${mallParameter.mallCertificate.data}" name="systemSettingss[2].data" type="text">
													<span class="notice-inline">此处填写您在工信部备案管理网站申请的备案编号，详请登陆<a href="http://www.miibeian.gov.cn" target="_blank">官方网站</a> </span>
										</td>
									</tr>
									<tr>
										<th>
											商品库存报警数量：
										</th>
										<td>
											<input value="${mallParameter.productAlertNum.name}" name="systemSettingss[3].name" type="hidden">
												<input class="x-input " value="${mallParameter.productAlertNum.data}" name="systemSettingss[3].data" type="text">
										</td>
									</tr>
									<tr>
										<th>
											商城EMAIL：
										</th>
										<td>
											<input value="${mallParameter.mallEmail.name}" name="systemSettingss[4].name" type="hidden">
												<input class="x-input " style="width: 280px;" value="${mallParameter.mallEmail.data}" name="systemSettingss[4].data" type="text">
										</td>
									</tr>
									<tr>
										<th>
											商城电话：
										</th>
										<td>
											<input value="${mallParameter.mallTel.name}" name="systemSettingss[5].name" type="hidden">
												<input class="x-input " style="width: 280px;" value="${mallParameter.mallTel.data}" name="systemSettingss[5].data" type="text">
										</td>
									</tr>
								</tbody>
							</table>
						</div>

						<div class="table-action">
							<button type="submit" class="btn">
								<span><span>保存</span> </span>
							</button>
						</div>
					</div>
			</form>


		</div>
		<div class="foot_content" id="footBar" style="font-size: 0px;"></div>
		<script type="text/javascript" src="<c:url value='/scripts/jquery-1.4.2.js'/>"></script>
		<script type="text/javascript" src="<c:url value='/scripts/jquery.validate.js'/>"></script>
		<script type="text/javascript">
	$(document).ready(function() {
		var validator = $("#basic_form").validate( {
			errorElement : "div",
			errorClass : "x-vali-error",
			onfocusout : false,
			rules : {
				'systemSettingss[0].data' : "required",

				'systemSettingss[1].data' : {
					required : true,
					url : true
				},
				'systemSettingss[2].data' : "required",
				'systemSettingss[3].data' : {
					required : true,
					number : true
				}
			},
			messages : {
				'systemSettingss[0].data' : "必填字段",

				'systemSettingss[1].data' : {
					required : "必填字段",
					url : "请填入链接格式 http://aaa.bbb.com"
				},
				'systemSettingss[2].data' : "必填字段",
				'systemSettingss[3].data' : {
					required : "必填字段",
					number : "请输入数字"
				}
			},
			errorPlacement : function(error, element) {
				element.removeClass('x-vali-error');
				error.appendTo(element.parent());

			},

			success : function(div) {
				$(div).remove();
			}
		});
	});
</script>

	</body>
</html>